package com.ruoyi.project.gzbook.payrecord.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 支付记录对象 dg_pay_record
 * 
 * @author mhg
 * @date 2021-10-06
 */
public class DgPayRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal payNum;

    /** 支付渠道 */
    @Excel(name = "支付渠道")
    private Long payChannel;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setPayNum(BigDecimal payNum)
    {
        this.payNum = payNum;
    }

    public BigDecimal getPayNum()
    {
        return payNum;
    }
    public void setPayChannel(Long payChannel)
    {
        this.payChannel = payChannel;
    }

    public Long getPayChannel()
    {
        return payChannel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("orderId", getOrderId())
            .append("payNum", getPayNum())
            .append("payChannel", getPayChannel())
            .append("createTime", getCreateTime())
            .toString();
    }
}
